package com.xzg.middleTable.dao;

import com.xzg.common.vo.QueryCondition;
import com.xzg.middleTable.entity.UserMission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMissionMapper {
    int deleteByPrimaryKey(Long userId);

    int insert(UserMission record);

    int insertSelective(UserMission record);

    UserMission selectByPrimaryKey(Long userId);

    int updateByPrimaryKeySelective(UserMission record);

    int updateByPrimaryKey(UserMission record);

    List<Long> selectByMissionId(Long missionId);

    int selectMissionCount(QueryCondition condition);

    int findDistinct(@Param("missionId") Long missionId, @Param("id") Long id);
}